//
//  ChangeString.m
//  xCode7网络请求封装
//
//  Created by dllo on 15/9/30.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "ChangeString.h"

@implementation ChangeString

+(NSDictionary *)getDicByString:(NSString *)string{
    NSArray *array = [string componentsSeparatedByString:@"&"];
    NSMutableDictionary *dic = [NSMutableDictionary dictionary];
    for (NSString *str in array) {
        NSArray *arr = [str componentsSeparatedByString:@"="];
        [dic setValue:arr[1] forKey:arr[0]];
    }
    return dic;
}

@end
